package leetcode.graph;

import leetcode.graph.common.GraphUtils;

class Solution323 {
    public int countComponents(int n, int[][] edges) {
        return GraphUtils.countComponents(n, edges);

    }
}

public class leetcode323 {
    public static void main(String[] args) {
        Solution323 solution323 = new Solution323();
        int[][] edges = {{0, 1}, {1, 2}, {3, 4}};
        System.out.println(solution323.countComponents(5, edges));
    }
}
